<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
    <title><?php echo $info['title'] ?></title>
    <style type="text/css">
        *{
            padding:0;
            margin:0;
        }
        .content{
            width:98%;
            padding:1%;
        }
        .header{
            width:100%;
        }
        .header h3{
            text-align: center;
            padding:2% 0;
        }
        .main{
            margin-top:10px;
        }
        .header p{
            font-size: 0.5rem;
            height:1rem;
            text-align: right;
            margin-right:1rem;
            color:#ccc;
        }
        .main .content{
            line-height:1.5rem;
        }
    </style>
</head>
<body>
<div class="content">
    <!--<div class="header">-->
        <!--<h3><?php echo $info['title']; ?></h3>-->
        <!--<p><?php echo $info['created_at']; ?></p>-->
    <!--</div>-->
    <div class="main">
        <?php if($info['type']==1){ ?>      <!--视频-->


        <video width="100%" height="300px" preload="auto" controls webkit-playsinline="true" playsinline="true" x5-playsinline="" x-webkit-airplay="allow" autoplay="autoplay" id="video">
            <source src="<?php echo $info['content']; ?>" type="video/mp4" />
            <source src="<?php echo $info['content']; ?>" type="video/ogg" />
            <source src="<?php echo $info['content']; ?>" type="video/webm" />
        </video>


        <?php }else if($info['type'] == 2){ ?>  <!--图文-->


            <div class="content">
                <?php echo $info['content']; ?>
            </div>


        <?php }else if($info['type'] == 3){ ?>  <!--音乐-->


            <audio  width="100%" controls>
                <source src="<?php echo $info['content']; ?>" type="audio/ogg">
                <source src="<?php echo $info['content']; ?>" type="audio/mpeg">
            </audio>


        <?php } ?>

    </div>
</div>
<?php echo $this->getContent(); ?>
</body>
<!--<script type="text/javascript">-->
    <!--var video=document.getElementById("video");-->
    <!--video.controls=false;-->
<!--</script>-->
</html>